#!/bin/bash

# 检查启动目录
if [ ! -e /opt/logs ]; then mkdir -p /opt/logs; fi
if [ ! -e /opt/iClouds/conf ]; then mkdir -p /opt/iClouds/conf; fi
if [ ! -e /opt/iClouds/pages ]; then mkdir -p /opt/iClouds/pages; fi
if [ ! -e /opt/statics/js ]; then mkdir -p /opt/statics/js; fi
if [ ! -e /opt/statics/images ]; then mkdir -p /opt/statics/images; fi
if [ ! -e /opt/statics/upload ]; then mkdir -p /opt/statics/upload; fi
if [ ! -e /opt/statics/download ]; then mkdir -p /opt/statics/download; fi
if [ ! -e /opt/statics/soft ]; then mkdir -p /opt/statics/soft; fi
if [ ! -e /opt/statics/jpeg ]; then mkdir -p /opt/statics/jpeg; fi
echo "check dirs is ok"